Optimal. Leaf size=37 \[ \frac{1}{5} i \cot ^5(x)-\frac{\cot ^4(x)}{4}+\frac{1}{3} i \cot ^3(x)-\frac{\cot ^2(x)}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0469125, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {3516, 848, 75} \[ \frac{1}{5} i \cot ^5(x)-\frac{\cot ^4(x)}{4}+\frac{1}{3} i \cot ^3(x)-\frac{\cot ^2(x)}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3516
Rule 848
Rule 75
Rubi steps
\begin{align*} \int \frac{\csc ^6(x)}{i+\tan (x)} \, dx &=\operatorname{Subst}\left (\int \frac{\left (1+x^2\right )^2}{x^6 (i+x)} \, dx,x,\tan (x)\right )\\ &=\operatorname{Subst}\left (\int \frac{(-i+x)^2 (i+x)}{x^6} \, dx,x,\tan (x)\right )\\ &=\operatorname{Subst}\left (\int \left (-\frac{i}{x^6}+\frac{1}{x^5}-\frac{i}{x^4}+\frac{1}{x^3}\right ) \, dx,x,\tan (x)\right )\\ &=-\frac{1}{2} \cot ^2(x)+\frac{1}{3} i \cot ^3(x)-\frac{\cot ^4(x)}{4}+\frac{1}{5} i \cot ^5(x)\\ \end{align*}
Mathematica [A] time = 0.018521, size = 41, normalized size = 1.11 \[ -\frac{2}{15} i \cot (x)-\frac{\csc ^4(x)}{4}+\frac{1}{5} i \cot (x) \csc ^4(x)-\frac{1}{15} i \cot (x) \csc ^2(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.041, size = 28, normalized size = 0.8 \begin{align*} -{\frac{1}{4\, \left ( \tan \left ( x \right ) \right ) ^{4}}}-{\frac{1}{2\, \left ( \tan \left ( x \right ) \right ) ^{2}}}+{\frac{{\frac{i}{3}}}{ \left ( \tan \left ( x \right ) \right ) ^{3}}}+{\frac{{\frac{i}{5}}}{ \left ( \tan \left ( x \right ) \right ) ^{5}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.36274, size = 32, normalized size = 0.86 \begin{align*} \frac{i \,{\left (30 i \, \tan \left (x\right )^{3} + 20 \, \tan \left (x\right )^{2} + 15 i \, \tan \left (x\right ) + 12\right )}}{60 \, \tan \left (x\right )^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.98741, size = 176, normalized size = 4.76 \begin{align*} -\frac{4 \,{\left (30 \, e^{\left (6 i \, x\right )} - 10 \, e^{\left (4 i \, x\right )} + 5 \, e^{\left (2 i \, x\right )} - 1\right )}}{15 \,{\left (e^{\left (10 i \, x\right )} - 5 \, e^{\left (8 i \, x\right )} + 10 \, e^{\left (6 i \, x\right )} - 10 \, e^{\left (4 i \, x\right )} + 5 \, e^{\left (2 i \, x\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.38777, size = 32, normalized size = 0.86 \begin{align*} -\frac{30 \, \tan \left (x\right )^{3} - 20 i \, \tan \left (x\right )^{2} + 15 \, \tan \left (x\right ) - 12 i}{60 \, \tan \left (x\right )^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]